        <aside>
            <header><?php echo __('messages') ?></header>
            <ul class="list">
                <li>
                    <a href="/message/write" class="internal_action">
                        <div class="list_main_container <?php if(isset($menu_selected) AND $menu_selected == 1) echo 'active' ?>">
                                <div class="app_icon icon_write_message">
                                    <p class="mini_name"><?php echo __('write') ?></p>
                                    <p class="mini_info"><?php echo __('Send a message to someone') ?></p>
                                </div>
                        </div>
                    </a>
                </li>
		<li>
                    <a href="/message/inbox" class="internal_action">
                        <div class="list_main_container <?php if(isset($menu_selected) AND $menu_selected == 2) echo 'active' ?>">
                                <div class="app_icon icon_inbox">
                                    <p class="mini_name"><?php echo __('inbox') ?></p>
                                    <p class="mini_info"><?php echo __('All messages')?>: <?php echo $total_inbox_items ?></p>
                                </div>
                        </div>
                    </a>

                </li>
		<li>
                    <a href="/message/outbox" class="internal_action"> 
                        <div class="list_main_container <?php if(isset($menu_selected) AND $menu_selected == 3) echo 'active' ?>">
                                <div class="app_icon icon_outbox">
                                    <p class="mini_name"><?php echo __('outbox') ?></p>
                                    <p class="mini_info"><?php echo __('All messages')?>: <?php echo $total_outbox_items ?></p>
                                </div>
                        </div>
                    </a>
                </li>
		<li>
                    <a href="/message/bin" class="internal_action">
                        <div class="list_main_container <?php if(isset($menu_selected) AND $menu_selected == 4) echo 'active' ?>">
                                <div class="app_icon icon_bin">
                                    <p class="mini_name"><?php echo __('bin') ?></p>
                                    <p class="mini_info"><?php echo __('All messages')?>: <?php echo $total_bin_items ?></p>
                                </div>

                        </div>
                    </a>
                </li>
            </ul>
	</aside>
        <section>

                <?php echo $content ?>
            
	</section>


<script type="text/javascript">
    
   head.ready(function() {
       site.init('messages-view');
   });
        
</script>